package com.github.ompc.carrying.common.service;

import com.github.ompc.carrying.common.domain.Row;
import com.github.ompc.carrying.common.exception.CarryingException;

/**
 * 搬砖服务
 * Created by vlinux on 14-9-1.
 */
public interface CarryingService {

    /**
     * 搬数据
     * @param token 请求TOKEN
     * @param isReTry 是否重传
     * @return 数据对象
     * @throws CarryingException 底层数据出错抛出异常
     */
    Row carry(int token, boolean isReTry) throws CarryingException;

}
